<?php


App::uses('AppController', 'Controller');


class TestController extends AppController {


	public $name = 'Test';
	

	public function index() {
		$this->layout = 'test';
	}
	
	public function formulario(){
		$return['usuario'] = 'Usuario: '.$_GET['usuario'];
		$return['clave'] = 'Clave: '.$_GET['clave'];
		echo json_encode($return);
		$this->layout = 'ajax';
	}

	function redireccion(){
		header_remove();
		header_start();
		header('Location: http://www.google.com/');
// 		$this->render('/portada/index');
	}
}
